package com.ihai.spring.boot.sample.rabbitmq;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 消费者
 *
 * @author 张驰
 * @date 2018/3/2
 */
public class Receiver {
    private final static Logger logger = LoggerFactory.getLogger(Receiver.class);
    private int count;

    public void receiveMessage(String message) {
        count++;
        logger.info(count + " Received <" + message + ">");
    }
}
